use snafu::Snafu;

pub mod api;
pub mod flow;
mod resp;

#[derive(Debug, Snafu)]
pub enum Error {
    #[snafu(whatever, display("{message}"))]
    Whatever {
        message: String,
        #[snafu(source(from(Box<dyn std::error::Error + Send + Sync>, Some)))]
        source: Option<Box<dyn std::error::Error + Sync + Send>>,
    },
}

pub type Result<T> = std::result::Result<T, Error>;
